/*
 *说明：在线操作监控
 *
 *@author liuxun 2012-03-26
*/


var opeForm;
var usr_id;

$(function() {

	opeForm = $('#opeForm');
	hitTree("0");
	$("#reloadBtn").click(reloadTreeWin);
});

function reloadTreeWin(){
	$('#treeFrame').attr('src', 'A_USR!showTree.do?model.is_monitor=1');
}

//处理左侧树的点击事件
function hitTree(code, txt, deep, isleaf, attributes) {
    if (code == '0') {
    	$('#mainFrame').attr('src', 'E_SESSION_LOG!showMonitorList.do');
    	return;
	}
    usr_id = attributes.usr_id;
    var url = 'E_SESSION_LOG!showMonitorList.do?model.usr_id=' + usr_id;
    $('#mainFrame').attr('src', url);
}
